package com.zhiyi.app.service.impl;

import com.zhiyi.app.dao.DataDictionaryMapper;
import com.zhiyi.app.entity.DataDictionary;
import com.zhiyi.app.service.DataDictionaryService;
import lombok.extern.log4j.Log4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Service
@Transactional
@Log4j
public class DataDictionaryServiceImpl implements DataDictionaryService {
    @Autowired
    private DataDictionaryMapper mapper;
    @Override
    public List<DataDictionary> getByTypeCode(String typeCode) {
        log.info("通过typeCode查询字典信息");
        return mapper.getByTypeCode(typeCode);
    }
}
